﻿<UserControl Margin="0 20 0 0"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:IntegrationTool.SDK.Controls.FilterControl" x:Class="IntegrationTool.SDK.Controls.FilterControl.Filter" 
             mc:Ignorable="d" d:DesignWidth="484" d:DesignHeight="125">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="100*"/>
        </Grid.RowDefinitions>
        <Label x:Name="FilterTitle" Content="Filter of type: "/>
        <Button x:Name="btnAddCondition" Content="Add condition" HorizontalAlignment="Right" Margin="0,3,210,0" VerticalAlignment="Top" Width="170" Click="btnAddCondition_Click" />
        <ContentControl Grid.Row="1">
            <StackPanel Margin="20 10 0 10" x:Name="conditionsPanel" >

            </StackPanel>
        </ContentControl>
        <Border Grid.Row="1" Width="2" HorizontalAlignment="Left" Margin="5 0 0 0" BorderBrush="Silver" BorderThickness="2" />


        <local:AddFilterControlBar Height="Auto" HorizontalAlignment="Right" NewFilterAdded="AddFilterControlBar_NewFilterAdded" />
    </Grid>
</UserControl>
